<html>

	<head>
		<style>
			input {
				font-size: 9px;
				margin: 0px;
				padding: 0px;
			}
			select {
				font-size: 9px;
				margin: 0px;
				padding: 0px;
			}
		</style>

		<script type="text/javascript">
			window.messageBox = function (msg) {
				//alert("fuck");
				document.getElementsByName("txtMessageBox")[0].value = document.getElementsByName("txtMessageBox")[0].value + "\n" + msg;
				var str = String(document.getElementsByName("txtMessageBox")[0].value);
				//alert("str = " + str);
				//alert("length = " + str.length);
				document.getElementsByName("txtMessageBox")[0].SelStart = str.length - 1;
				document.getElementsByName("txtMessageBox")[0].SelLength = 1;
			};
			
			function teste() {
				alert("teste");
				window.messageBox("teste");
			}
		</script>
		
	</head>

	<body onload="teste();">
		<div id="playn-root" style="position: relative; width: 600px; height: 300px; overflow: hidden; border: thin solid black;">
		</div>

		<div style="position: absolute; top: 500; left: 0;">
			<textarea name="txtMessageBox" cols="30" rows="5" style="width: 100%;"></textarea>
		</div>
		
		<script type="text/javascript" src="/qualomelhor.gwt.modules.SimpleGame/qualomelhor.gwt.modules.SimpleGame.nocache.js"></script>
	</body>
</html>